<template>
<div>
    <div class="common-form">
      <span>{{curItem.name}}</span>
    </div>
    <el-form size="small" :model="curItem" label-width="100px">
      <!--显示数量-->
      <el-form-item :label="$t('page.display_count_label')">
        <el-input v-model="curItem.params.showNum" class="w-auto"></el-input>
      </el-form-item>
      <!--组件样式-->
      <div class="p-10-0 mb16 f14 border-b">
        <span class="gray6">{{$t('page.component_style')}}</span>
      </div>
      <!-- 文字颜色 -->
      <el-form-item :label="$t('page.text_color_label')">
        <div class="d-s-c">
          <el-color-picker v-model="curItem.style.color"></el-color-picker>
          <el-button
            type="button"
            style="margin-left: 10px"
            @click.stop="$parent.onEditorResetColor(curItem.style, 'color', '#000000')"


            >{{$t('page.reset')}} 
</el-button>
        </div>
      </el-form-item>
      <el-form-item :label="$t('page.background_image_label')">
        <div class="diy-notice-icon">
          <img
            v-img-url="curItem.style.background_image"
            alt=""
            width="350"
            height="45"
            @click="$parent.onEditorSelectImage(curItem.style, 'background_image')"


          />
        </div>
        <div>{{$t('page.size_tip_700x90')}}</div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  props: ["curItem", "selectedIndex"],
  created() {
    console.log(this.curItem);
  },
  methods: {}
};
</script>

<style scoped>
.diy-notice-icon,
.diy-notice-icon img {
  width: 350px;
  height: 45px;
}
</style>

